<?php
namespace PsiFramework\Applications\AlloMediaPortal\Classes\DAO;

import("Classes.DAO.AbstractDAO");
import("Applications.AlloMediaPortal.Classes.Model.InformationPart");

use \PsiFramework\Classes\DAO\AbstractDAO;
use \PsiFramework\Classes\Model\Object;
use \PsiFramework\Classes\Util\Parameters\ObjectParameters;
use \PsiFramework\Applications\AlloMediaPortal\Classes\Model\InformationPart;

/**
 * AlloMedia
 * Portail des professionnels
 *
 * @author Rémi San
 * @version beta
 */

/**
 * The InformationPartDAO is the Data Access Object for class InformationPart
 *
 * @package DAO
 */
class InformationPartDAO extends AbstractDAO
{

    protected static $_singleton = null;


    /**
     * Function to be called instead of the constructor.
     *
     * @return InformationPartDAO    instance
     */
    public static function getInstance(ObjectParameters $objectParameters)
    {

        if (self::$_singleton==null) {
            self::$_singleton = new InformationPartDAO($objectParameters);
        }

        return self::$_singleton;
    }

}
